import request from '@/utils/request'
export default{
    //查询借款人列表
    list(pageNum,pageSize,key){
        return request({
            url:`/admin/core/borrower/list/${pageNum}/${pageSize}`,
            method:'GET',
            params:{key:key}
            // params:{k:v} ,
            // data:{k:v},
            // headers:{k:v}
        })
    },
    //根据借款人id查询详情
    getDetail(id){
        return request({
            url:`/admin/core/borrower/borrowerDetail/${id}`,
            method:'GET'
        })
    },
    //提交审核结果
    approval(data){
        return request({
            url:`/admin/core/borrower/approval`,
            method:'PUT',
            data
        })
    },
    //分页查询借款分页数据
    getBorrowInfos(pageNum,pageSize,key){
        return request({
            url:`/admin/core/borrowInfo/list/${pageNum}/${pageSize}`,
            method:'GET',
            params:{key}
        })
    },
    //查询借款详情
    getBorrowInfoDetail(id){
        return request({
            url:`/admin/core/borrowInfo/getBorrowInfoDetailVo/${id}`,
            method:'GET'
        })
    },
    borrowInfoApproval(data){
        return request({
            url:`/admin/core/borrowInfo/borrowInfoApproval`,
            method:'POST',
            data
        })
    }

}